package model

import (
	"engine/consts"
	"gorm.io/datatypes"
)

type CreateSupplierUser struct {
	Email    string         `json:"email" binding:"required" example:"11111@qq.com"`
	Nickname string         `json:"nickname" binding:"required" example:"今晚打老虎"`
	Region   string         `json:"region" example:"1"`
	Mobile   string         `json:"mobile" example:"13213047911"`
	Avatar   string         `json:"avatar" example:"http://www.baidu.com"`
	RoleIds  []uint64       `json:"roleIds"`
	Config   datatypes.JSON `json:"config" swaggertype:"object"`
}

type QuerySupplierUser struct {
	Status consts.CommonStatus `form:"status"`
	PublicSearchData
}
type UpdateSupplierUser struct {
	Email    string              `json:"email" example:"11111@qq.com"`
	Nickname string              `json:"nickname" example:"今晚打老虎"`
	Region   string              `json:"region" example:"1"`
	Mobile   string              `json:"mobile" example:"13213047911"`
	Avatar   string              `json:"avatar" example:"https://www.baidu.com"`
	Status   consts.CommonStatus `json:"status" example:"active or inactive"`
	RoleIds  []uint64            `json:"roleIds"`
	Config   datatypes.JSON      `json:"config" swaggertype:"object"`
}
